// TOWN DIALOGUE SCRIPT
//    Town 89: Guhkbar's Pit

begintalkscript;

variables;

short i,j,k,r1,choice;

// Illyree

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 1;
	question = "Illyree";
	text1 = "The woman lying back on this pile of filthy furs has pale green skin, silvery hair, and amazingly lovely features. She must be one of the dryads, a rare and legendary race.";
	text2 = "She stares blankly at the ceiling. At first, you think she doesn't notice you. _I am Illyree,_ she croaks. She is sick.";
	text5 = "Illyree turns her head weakly to you. _Yes?_";
	action = INTRO;

begintalknode;
	state = 1;
	nextstate = 2;
	question = "_How did you wind up here?_";
	text1 = "She coughs. _I have been taken from my forest. Soon I will be beyond help._";

begintalknode;
	state = 2;
	nextstate = 6;
	question = "_Which forest are you from?_";
	text1 = "_Why, any forest I live in. We dryads must be out in the woods to survive. If I stay in this pit long, I will die. I am doomed if you do not help me. There is treasure, if you can help._";

begintalknode;
	state = 2;
	nextstate = 3;
	question = "_Who keeps you in here?_";
	text1 = "_The giant Guhkbar keeps me here. I could slip away, but this door has a magic lock._";
	text3 = "_The giant Guhkbar is dead, but his bars remain. I could slip away, but this door has a magic lock._";
	action = DEP_ON_SDF 89 11 0;

begintalknode;
	state = 3;
	nextstate = -1;
	question = "_Who is Guhkbar?_";
	text1 = "Her eyes flash red. _He is an ancient giant, my long time enemy. He surprised me and carried me off. I would curse him mightily, if I could be helped from this cell._";
	text3 = "Her eyes flash red. It's an eerie sight. _He is an ancient giant, my long time enemy. He surprised me and carried me off, but he is dead now, and thus unimportant._";
	action = DEP_ON_SDF 89 11 0;

begintalknode;
	state = 3;
	nextstate = 4;
	question = "_Is there any way to defeat this lock?_";
	text1 = "_I saw some things when I was carried in. Guhkbar has a key in the box where he sleeps. To get there, you would have to slip past Guhkbar._";
	text3 = "_I saw some things when I was carried in. Guhkbar had a key in the box right by his sleeping pad. It's in his lair, the cave that has a statue outside it._";
	action = DEP_ON_SDF 89 11 0;

begintalknode;
	state = 4;
	nextstate = 5;
	condition = gf(89,11) <= 0;
	question = "_How can I get past him?_";
	text1 = "She makes a rough motion with her hand. She is pointing southeast. _He is a drunk. Stay far from him, and you might get to his lair without him hearing you._";

begintalknode;
	state = 6;
	nextstate = -1;
	condition = gf(89,11) <= 0;
	question = "_Do you know anything about the treasure?_";
	text1 = "_I am a dryad. I don't know about treasure. Gold is gold. If you free me, his treasure will be yours._";

begintalknode;
	state = 1;
	nextstate = 7;
	condition = gf(89,11) >= 1;
	question = "_We killed the giant nearby. Did you know him?_";
	text1 = "Illyree lets out long, loud laughter. _The gods are my friends. Guhkbar had me imprisoned for far too long. But the lock on the gate still won't let me be free. Release me, and I will reward you._";

begintalknode;
	state = 7;
	nextstate = -1;
	question = "_How can we unlock the magical door?_";
	text1 = "_I saw some things when I was carried in. Guhkbar had a key in the box where he sleeps. It's in his lair, the cave that has a statue outside it. Get that key and bring it back here and release me._";
	action = END_TALK;
